﻿using System;
using System.Collections.Generic;
using System.Text;
using T.FAS.Runtime.Metadata.Client;
using T.FAS.Runtime.Metadata.Entity;

namespace T.FAS.Runtime.Action.ExpressionPlugin
{
    public class DevMetadataService
    {
        public IMetaDataContent GetMetadata(string metadataId,string projectBranchID)
        {
            var data = MetaDataClientService.GetInstance().GetMetaData(metadataId);
            if (data != null)
                return data.Content;
            return null;
        }

        public static IMetaData GetMetadataEntity(string metadataId, string projectBranchID)
        {
            var data = MetaDataClientService.GetInstance().GetMetaData(metadataId);
            return data;
        }
    }
}
